<template>
  <div>
    <el-form :inline="true" :label-width="'50px'" :model="data">
      <el-form-item
        v-for="item in formList"
        :label="item.label"
        :key="item.label"
      >
        <el-input
          size="mini"
          type="primary"
          v-model="data[item.prop]"
        ></el-input>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  components: {},
  props:['data'],
  data() {
    return {
      formList: [
        { label: "身高", prop: "height" },
        { label: "体重", prop: "weight" },
      ]
    };
  },
  methods: {
  },
};
</script>

<style lang="scss" scoped></style>
